package com.ssy.lingxi.system.service;

import com.ssy.lingxi.common.response.PageData;
import com.ssy.lingxi.common.response.Wrapper;
import com.ssy.lingxi.system.dto.request.CurrencyAddRequest;
import com.ssy.lingxi.system.dto.request.CurrencyDeleteRequest;
import com.ssy.lingxi.system.dto.request.CurrencyListRequest;
import com.ssy.lingxi.system.dto.request.CurrencyUpdateRequest;
import com.ssy.lingxi.system.dto.response.CurrencyListResponse;
import com.ssy.lingxi.system.entity.Currency;

import javax.servlet.http.HttpServletRequest;
import java.util.List;

/**
* 币制设置业务层
* @author wrc
* @date 2020/5/25
*/
public interface CurrencyService {

    /**
    * 查询币制列表
    * @author wrc
    * @date 2020/5/25
    */
    Wrapper<PageData<CurrencyListResponse>> currencyList(CurrencyListRequest request);

    /**
    * 添加币制列表
    * @author wrc
    * @date 2020/5/26
    */
    Wrapper<Currency> currencyAdd(HttpServletRequest httpServletRequest, CurrencyAddRequest request);

    /**
    * 删除币制
    * @author wrc
    * @date 2020/5/26
    */
    Wrapper currencyDelete(HttpServletRequest httpServletRequest, CurrencyDeleteRequest request);

    /**
    * 修改币制
    * @author wrc
    * @date 2020/5/26
    */
    Wrapper currencyUpdate(HttpServletRequest httpServletRequest, CurrencyUpdateRequest request);


    /**
    * 停用币制
    * @author wrc
    * @date 2020/6/3
    */
    Wrapper currencyStop(CurrencyDeleteRequest request);



    /**
    * 查询所有币制
    * @author wrc
    * @date 2020/6/3
    */
    Wrapper<List<Currency>> currencyAll();

    /**
    * 查询币制详情
    * @author wrc
    * @date 2020/6/3
    */
    Wrapper<Currency> currencyDetails(CurrencyDeleteRequest request);
}
